package com.zzxx.mapper;

import com.zzxx.pojo.SysLog;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface SyslogMapper {

    @Update("insert into syslog values(#{id},#{visitTime},#{username},#{ip},#{url},#{executionTime},#{method})")
    void insertSyslog(SysLog sysLog);

    @Select("select * from syslog order by visitTime desc")
    List<SysLog> queryAll();
}
